﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wFrmMapaPopup.aspx.cs" Inherits="Crosland.Automotriz.Web.CRM.wFrmMapaPopup" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register Assembly="GMaps" Namespace="Subgurim.Controles" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Mapa Zoom</title>
        <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <link href="../Css/jquery.css" rel="stylesheet" type="text/css" />
   
    <script  src="https://maps.googleapis.com/maps/api/js?sensor=false" ></script> 

    <script type="text/javascript">

        function AjustarMapa() {
            var alto = $(document).height();
            document.getElementById('mapa3').style.height = alto + 'px';
        }

        $(document).ready(function () {
            AjustarMapa();
        });   

    </script>


</head>
<body onload="AjustarMapa();">
    <form id="form1" runat="server" style="width: 100%; height: 100%">
        <asp:ToolkitScriptManager ID="smGeneral" runat="server">
        </asp:ToolkitScriptManager>
    

            <div style="position:absolute; top:40px; z-index:1000; right:20px">
            <asp:ImageButton ID="btnBuscador" runat="server" 
                ImageUrl="../Images/buscar.png" />
        </div>

    <cc1:gmap ID="mapa3" runat="server" Width="100%" Height="100%" />

          <div class="modal-dialog" runat="server" id="divBuscador" style="display:none; width:1000px;">

              


         <div class="popup-header">
             <div class="popup-title" runat="server" id="divBuscadorMove">
                 Buscar locales
             </div>
             <div class="popup-close" runat="server" id="divBuscadorClose">  
             </div> 
          </div>

         <div class="popup-content" >
        <asp:Panel ID="pnlBusqueda" runat="server"> 
                      <asp:UpdatePanel ID="UpdatePanel1" runat="server">
              <ContentTemplate>

                                <table width="100%">
                                <tr>
                                <td height="20px"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                </tr>
                                    <tr>
                                        <td style="width: 92px">
                                            <asp:Label ID="Label1" runat="server" Text="Departamento:"></asp:Label>
                                        </td>
                                        <td width="205">
                                            <dx:ASPxComboBox ID="cboDepartamento" runat="server" AutoPostBack="True" 
                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                            CssPostfix="Office2010Blue" Height="25px" 
                            OnSelectedIndexChanged="cboDepartamento_SelectedIndexChanged" Spacing="0" 
                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                            Width="200px" IncrementalFilteringMode="Contains">
                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                </LoadingPanelImage>
                                                <LoadingPanelStyle ImageSpacing="5px">
                                                </LoadingPanelStyle>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                                <Paddings PaddingLeft="5px" />
                                            </dx:ASPxComboBox>
                                        </td>
                                        <td style="width: 62px">
                                            <asp:Label ID="Label2" runat="server" Text="Provincia:"></asp:Label>
                                        </td>
                                        <td width="205">
                                            <dx:ASPxComboBox ID="cboProvincia" runat="server" AutoPostBack="True" 
                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                            CssPostfix="Office2010Blue" Height="25px" 
                            OnSelectedIndexChanged="cboProvincia_SelectedIndexChanged" Spacing="0" 
                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                            Width="200px" IncrementalFilteringMode="Contains">
                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                </LoadingPanelImage>
                                                <LoadingPanelStyle ImageSpacing="5px">
                                                </LoadingPanelStyle>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                                <Paddings PaddingLeft="5px" />
                                            </dx:ASPxComboBox>
                                        </td>
                                        <td style="width: 51px">
                                            <asp:Label ID="Label3" runat="server" Text="Distrito:"></asp:Label>
                                        </td>
                                        <td width="205">
                                            <dx:ASPxComboBox ID="cboDistrito" runat="server" 
                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                            CssPostfix="Office2010Blue" Height="25px" Spacing="0" 
                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                            Width="200px" IncrementalFilteringMode="Contains">
                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                </LoadingPanelImage>
                                                <LoadingPanelStyle ImageSpacing="5px">
                                                </LoadingPanelStyle>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                                <Paddings PaddingLeft="5px" />
                                            </dx:ASPxComboBox>
                                        </td>
                                        <td align="right" rowspan="3" width="105">
                                            <dx:ASPxButton ID="btnBuscar" runat="server" 
                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                            CssPostfix="Office2010Blue" Height="120px" onclick="btnBuscar_Click" 
                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Buscar" 
                            Width="100px">
                                                <Image Url="~/Images/search.png">
                                                </Image>
                                            </dx:ASPxButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 92px">
                                            <asp:Label ID="Label4" runat="server" Text="Supervisor:"></asp:Label>
                                        </td>
                                        <td colspan="3" style="width: 410px" width="205">
                                            <dx:ASPxComboBox ID="cboSupervisor" runat="server" 
                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                            CssPostfix="Office2010Blue" Height="25px" Spacing="0" 
                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                            Width="475px" IncrementalFilteringMode="Contains">
                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                </LoadingPanelImage>
                                                <LoadingPanelStyle ImageSpacing="5px">
                                                </LoadingPanelStyle>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                                <Paddings PaddingLeft="5px" />
                                            </dx:ASPxComboBox>
                                        </td>
                                        <td style="width: 51px">
                                            <asp:Label ID="Label6" runat="server" Text="Modelo:" Visible="False"></asp:Label>
                                        </td>
                                        <td width="205">
                                            <dx:ASPxComboBox ID="cboModelo" runat="server" 
                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                            CssPostfix="Office2010Blue" Height="25px" Spacing="0" 
                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                            Width="200px" Visible="False">
                                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                </LoadingPanelImage>
                                                <LoadingPanelStyle ImageSpacing="5px">
                                                </LoadingPanelStyle>
                                                <ButtonStyle Width="13px">
                                                </ButtonStyle>
                                                <Paddings PaddingLeft="5px" />
                                            </dx:ASPxComboBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 92px">
                                            <asp:Label ID="Label5" runat="server" Text="Clasificación:"></asp:Label>
                                        </td>
                                        <td colspan="5" width="155">
                                            <asp:CheckBoxList ID="chkClasificacion" runat="server" Font-Size="10px" 
                            RepeatColumns="5">
                                            </asp:CheckBoxList>
                                        </td>
                                    </tr>
                                </table>
              </ContentTemplate>
              </asp:UpdatePanel>
                   
        </asp:Panel>
                 </div>


  </div>

     <asp:ModalPopupExtender ID="mpeBuscador" TargetControlID="btnBuscador"
            BackgroundCssClass="modal-popup" PopupControlID="divBuscador" Drag="True"
            BehaviorID="mpeBuscador" CancelControlID="divBuscadorClose" 
            PopupDragHandleControlID="divBuscadorMove" runat="server" DynamicServicePath="" Enabled="True">
     </asp:ModalPopupExtender>




    

    </form>
</body>
</html>
